package com.example.java3mysql2.instrastructure;

import org.springframework.stereotype.Component;

import java.util.Random;
@Component
public class RandomEx {

    private Random random = new Random();

    public synchronized String randomString(String prefix){
        return prefix+String.format("%05d",random.nextInt(100000));
    }
    public Integer randomInteger(Integer integer){
        return random.nextInt(integer);
    }
}
